package lab03.test05;

import com.sun.xml.internal.ws.server.ServerRtException;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        String path="F:\\hello.txt";
        BufferedReader bufferedReader=null;

        try {
            bufferedReader=new BufferedReader(new FileReader(path));

            String line=null;

            while((line=bufferedReader.readLine())!=null){

            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
